{% extends "exams/list/exam_list.html" %}

{% load smart_if %}

{% block exam_list_change_view %} 
<tr class="{% cycle 'row1' 'row2' %}">
	<td><b>Način izpisa</b></td>
	<td>[ <b><a href="{% url exam_list student.get_profile.student_number 'all' %}">Vsa polaganja</a></b> ] [ <a href="{% url exam_list student.get_profile.student_number 'last' %}">Samo zadnje polaganje</a> ]</td>
</tr>
{% endblock %}

{% block exam_list_details %}
	{% if forloop.first %}
	  <td>	  
	  {% for examiner in i.exam.examiners.all %}
		{% if forloop.last %} {{ examiner.get_profile|title }} {% else %} {{ examiner.get_profile|title }},  {% endif %}		
	  {% endfor %}	  
	  </td>	  
	  <td>{{ i.exam.date|date:"j. F Y" }}</td>
	  <td align="center">
		{% if i.grade_exam > 5 %} 
			<b>{{ i.grade_exam }}
			{% if i.grade_tut %}
				/{{ i.grade_tut }}
			{% endif %}		
			</b> 
		{% else %} 
			{{ i.grade_exam}}
			{% if i.grade_tut %}
				/{{ i.grade_tut }}
			{% endif %}			
		{% endif %}
	  </td>
	  <td>{{ i.seq_no }}.</td>
	{% else %}
	  </tr>
	  <tr>
	  <td>&nbsp;</td><td>&nbsp;</td>
	  <td>	  
	  {% for examiner in i.exam.examiners.all %}
		{% if forloop.last %} {{ examiner.get_profile|title }} {% else %} {{ examiner.get_profile|title }},  {% endif %}		
	  {% endfor %}	  
	  </td>	  

	  <td>{{ i.exam.date|date:"j. F Y" }}</td>
	  <td align="center">
		{% if i.grade_exam > 5 %} 
			<b>{{ i.grade_exam}}
			{% if i.grade_tut %}
				/{{ i.grade_tut }}
			{% endif %}
			</b> 
		{% else %} 
			{{ i.grade_exam }}
			{% if i.grade_tut %}
				/{{ i.grade_tut }}
			{% endif %}			
		{% endif %}	  	  
	  </td>
	  <td>{{ i.seq_no }}.</td>
	{% endif %}
{%endblock%}
